Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[uss_qualifier] authentication validation: don't skip if a scope is missing, improve dependency on current time #749

Conversation

Shastick
Copy link
Contributor

@Shastick Shastick commented Aug 9, 2024

As observed in #690, some deployments under test may not provide scopes for every group of endpoints being tested by the AuthenticationValidation scenario.

This lets the scenario selectively test the endpoints for which scopes are available.

If none of the required scopes are available a MissingResourceError will be raised at instantiation and the scenario should be reported as skipped.

Note that this also moves the instantiation of the validator classes to the moment in time where they are used, as they depend on the current time.

@Shastick Shastick changed the title [uss_qualifier] don't skip authentication validation if certain scopes are unavailable. [uss_qualifier] authentication validation: don't skip if a scope is missing, improve dependency on current time Aug 9, 2024
@Shastick Shastick force-pushed the auth-validation-no-skip-missing-scopes branch from fbf42bc to 25b5916 Compare August 9, 2024 08:26
@Shastick Shastick requested a review from barroco August 9, 2024 08:32
@BenjaminPelletier BenjaminPelletier merged commit 8b760a6 into interuss:main Aug 12, 2024
20 checks passed
github-actions bot added a commit that referenced this pull request Aug 12, 2024
…issing, improve dependency on current time (#749)

[uss_qualifier] don't skip authentication validation if certain scopes are unavailable 8b760a6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants